package com.kuang.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

@Controller
public class ModelTest1 {

    @RequestMapping("/h1/t1")
    public String test1(HttpServletRequest request, HttpServletResponse response){

        HttpSession session=request.getSession();
        System.out.println(session.getId());

        return "test";
    }
}
